//
//  LYCSQLiteManager.m
//  FMDB_Practice
//
//  Created by 梁永超 on 17/3/13.
//  Copyright © 2017年 李旭杰. All rights reserved.
//

#import "LYCSQLiteManager.h"

@implementation LYCSQLiteManager
+ (instancetype)sharedManager{
    static LYCSQLiteManager *manager;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        NSString *dbPath = [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject] stringByAppendingPathComponent:@"lycDB.db"];
        manager = [self databaseQueueWithPath:dbPath];
    });
    return manager;
}
@end
